multiply

Multiplies a string by itself and concactenates it onto the resulting string

Similar to how Python's string multiplication works.

pure @safe nothrow
T
multiply
(
T
)
(,
size_t count
)
if (
isSomeString!T
)

Parameters

text T

The text to multiply

count size_t

How many times to multiply it

Return Value

Type: T

The multiplied string

Meta